<cfsetting enablecfoutputonly="true">
<!--- @@Copyright: Daemon Pty Limited 1995-2007, http://www.daemon.com.au --->
<!--- @@License: Released Under the "Common Public License 1.0", http://www.opensource.org/licenses/cpl.php --->
<!--- @@displayname: Blueprint CSS column rendering --->
<!--- @@description: Allows the user to layout pages with the blueprint css with easy to use custom tag. <tags:bpColumn />  --->
<!--- @@author: Matthew Bryant (mbryant@daemon.com.au) --->


<!------------------ 
FARCRY IMPORT FILES
 ------------------>
<cfimport taglib="/farcry/core/tags/formtools" prefix="ft" />
<cfimport taglib="/farcry/core/tags/webskin" prefix="skin" />

<!------------------ 
START WEBSKIN
 ------------------>


<cfsetting enablecfoutputonly="false">

<cfsetting enablecfoutputonly="true" />

<cfimport taglib="/farcry/core/tags/webskin" prefix="skin" />

<cfif thistag.executionMode eq "Start">
	<cfparam name="attributes.span" default="24" />
	<cfparam name="attributes.bLast" default="false" />
	<cfparam name="attributes.prepend" default="0" />
	<cfparam name="attributes.append" default="0" />
	<cfparam name="attributes.push" default="0" />
	<cfparam name="attributes.pull" default="0" />
	<cfparam name="attributes.id" default="" />
	<cfparam name="attributes.class" default="" />
	<cfparam name="attributes.style" default="" />
	<cfparam name="attributes.bAllowOverflow" default="false" /><!--- By default the css will set overflow-x to hidden. This fixes the problem where IE6 adds an extra 3px margin to two columns that are floated up against each other. --->
	
	<!------------------------------------------------------------------------------------------ 
	INCLUDE THE CSS IF NOT ALREADY INCLUDED 
	If you have your own custom blueprint files, simply include the following <skin:html /> tag 	
	with the id="blueprintCSS" containing your own blueprint css.
	------------------------------------------------------------------------------------------>

	<skin:htmlHead id="blueprintCSS">
		<cfoutput>
		<style type="text/css">
		/* Blueprint grid CSS */
		/*the grid is 950px wide, with 24 columns spanning 30px, and a 10px margin between columns.	*/
		@import url("#application.url.webroot#/css/grid.css");		
		</style>
		</cfoutput>
	</skin:htmlHead>
	
	
	<cfif attributes.bAllowOverflow>
		<cfset attributes.style = "overflow-x: visible;#attributes.style#" />
	</cfif>
	
	<cfoutput><div id="#attributes.id#" class="column span-#attributes.span# <cfif attributes.bLast>last</cfif> <cfif attributes.prepend GT 0>prepend-#attributes.prepend#</cfif> <cfif attributes.append GT 0>append-#attributes.append#</cfif> <cfif attributes.push GT 0>push-#attributes.push#</cfif> <cfif attributes.pull GT 0>pull-#attributes.pull#</cfif> #attributes.class#" style="#attributes.style#"></cfoutput>
</cfif>



<cfif thistag.executionMode eq "End">
	<cfoutput></div></cfoutput>
</cfif>


